package com.thoughtworks.AnnotationReader;

import java.util.Arrays;
import java.util.List;

/**
 * Created by yrzhang on 10/8/16.
 */

@Author(name="Raoul")
@Author(name="Mario")
@Author(name="Alan")
public class Book {

    public List<Author> getAuthorsName() {
        Author[] authors = Book.class.getAnnotationsByType(Author.class);
        return Arrays.asList(authors);
    }
}



